﻿@model WMILK_MVC4.Models.UserModels
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout_NoMenu.cshtml";
    var resc = WMILK_MVC4.App_Start.Languages.ResourceManager;
//    bool isActive = ViewBag.IsActiveMessage;
}
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
@using (Html.BeginForm())
{

    <div class="omb_login">
        <h3 class="omb_authTitle">@resc.GetString("user_Register1") <a href="#">@resc.GetString("user_SigneUp")</a></h3>
        <div class="row omb_row-sm-offset-3 omb_socialButtons">
            <div class="col-xs-4 col-sm-2">
                <a href="#" class="btn btn-lg btn-block omb_btn-facebook">
                    <i class="fa fa-facebook visible-xs"></i>
                    <span class="hidden-xs">@resc.GetString("user_Facebook")</span>
                </a>

            </div>
            <div class="col-xs-4 col-sm-2">
                <a href="#" class="btn btn-lg btn-block omb_btn-twitter">
                    <i class="fa fa-twitter visible-xs"></i>
                    <span class="hidden-xs">@resc.GetString("user_Twitter")</span>
                </a>
            </div>
            <div class="col-xs-4 col-sm-2">
                <a href="#" class="btn btn-lg btn-block omb_btn-google">
                    <i class="fa fa-google-plus visible-xs"></i>
                    <span class="hidden-xs">@resc.GetString("user_Google")</span>
                </a>
            </div>
        </div>

        <div class="row omb_row-sm-offset-3 omb_loginOr">
            <div class="col-xs-12 col-sm-6">
                <hr class="omb_hrOr">
                <span class="omb_spanOr">@resc.GetString("user_Or")</span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-8">
                <span class="field-validation-error">@ViewBag.IsActiveMessage</span>
                @{

                 /*   if (isActive == false)*/
                    {
                        <span>Click vào link để xác nhận lại tài khoản @Html.ActionLink("Xác nhận","ResendCodeRegister","User")</span>
                    }
                }
            </div>
        </div>
        <div class="row omb_row-sm-offset-3">
            <div class="col-xs-12 col-sm-6">
                <form class="omb_loginForm" action="" autocomplete="off" method="POST">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
                        @Html.TextBoxFor(u => u.UserName, new { @class = "form-control", @placeholder = resc.GetString("user_UserNameOrEmail") })

                    </div>
                    @Html.ValidationMessageFor(u => u.UserName)
                    <span class="help-block"></span>

                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                        @Html.PasswordFor(u => u.Password, new { @class = "form-control", @placeholder = resc.GetString("user_Pasword") })

                    </div>
                    @Html.ValidationMessageFor(u => u.Password)
                    @Html.ValidationSummary(true, @resc.GetString("user_AlertFailPass"));
                    <span> &nbsp;</span>
                    <button class="btn btn-lg btn-primary btn-block" type="submit">@resc.GetString("user_Register")</button>
                </form>
            </div>
        </div>
        <div class="row omb_row-sm-offset-3">
            <div class="col-xs-12 col-sm-3">
                <label class="checkbox">
                    <input type="checkbox" value="remember-me">@resc.GetString("user_Remember")
                </label>
            </div>
            <div class="col-xs-12 col-sm-3">
                <p class="omb_forgotPwd">
                    <a>@Html.ActionLink(@resc.GetString("user_ForgotPass"), "ForgotPassword", "User")</a>
                </p>
            </div>
        </div>
    </div>
}
